package defpackage; /* renamed from: tfd reason: default package */ public class tfd extends Exception { private static final long serialVersionUID = 7173760488557178091L; private static String uEx = "QingException"; public String uEy = uEx; public tfd() { } public tfd(String str) { super(str); } public tfd(String str, Throwable th) { super(str, th); } public tfd(Throwable th) { super(th); } public static tfd e(vrz vrz) { if ("InvalidAccessId".equals(vrz.getResult())) { syp fip = syp.fip(); vvb vvb = fip.fiq().gfs; try { String str = fip.fiq().uzw; vri vri = new vri(str, vvb.wBI, 0); vri.Xb("/api/groups/temporary"); if (!"https://drive.wps.com".equalsIgnoreCase(str)) { vri.hl("host", "qing.wps.cn"); } else { vri.hl("host", "drive.wps.com"); } vqm.a(vri.fUC()); } catch (Exception e) { tfy.e(e, "QingService.getAuthCheck error.", new Object[0]); } try { vrg vrg = new vrg(syo.bAz(), 0); vrg.Xb("/api/v3/mine?attrs=profile"); vrg.hl("WPS-Sid", vvb.lMm); vqm.a(vrg.fUC()); } catch (Exception e2) { tfy.e(e2, "QingService.checkUserDetail error.", new Object[0]); } } if (!(vrz instanceof vsb)) { return vrz instanceof vry ? new tff(vrz.getCode(), vrz.getMessage(), null) : vrz instanceof vsc ? new tfl(vrz.getMessage(), vrz.getCause()) : ((vrz instanceof vsf) || (vrz instanceof vsa)) ? new tfl(vrz.getMessage(), vrz.getCause()) : vrz instanceof vrx ? new tfc(vrz.getMessage(), vrz.getCause()) : new tfp(vrz.getMessage(), vrz.getCause()); } vsb vsb = (vsb) vrz; if (vsb.wzr) { return new tfo(vrz.getMessage(), vsb.getCause()); } if (!vsb.wzs) { return vsb.wzt ? new tff(vsb.getCode(), vsb.getMessage(), null) : new tfg(vsb.getMessage(), vsb.getCause()); } tfo tfo = new tfo(vrz.getMessage(), vsb.getCause()); tfo.uEB = vsb.wzs; return tfo; } }